exports.json2params = function json2params(obj) {
    const keys = Object.keys(obj)
    const ret = []

    for(let k of keys) {
        ret.push(`${k}=${obj[k]}`)
    }
    
    return ret.join('&')
}